package com.edata.bigdata.basic

import org.apache.log4j.Logger
import org.apache.spark.sql.{DataFrame, SparkSession}

trait Saver extends Serializable{
  @transient lazy val LOGGER = Logger.getLogger(this.getClass)
  var sourceType:String
  var session:SparkSession
  def save(data:DataFrame,args:String*):Boolean
  def update(data:DataFrame,args:String*):Boolean
  def delete(data:DataFrame,args:String*):Boolean
  def saveOrUpdate(data:DataFrame,args:String*):Boolean


}
